import request from "@/utils/request";

// 查询金蝶-财务-应付票据结算单列表
export function getList(query) {
    return request({
        url: "/heart/KingFinanceReceiptSettlementBill/list",
        method: "get",
        params: query,
    });
}

// 查询金蝶-财务-应付票据结算单详细
export function getDetail(id) {
    return request({
        url: "/heart/KingFinanceReceiptSettlementBill/" + id,
        method: "get",
    });
}

// 新增金蝶-财务-应付票据结算单
export function addInfo(data) {
    return request({
        url: "/heart/KingFinanceReceiptSettlementBill",
        method: "post",
        data: data,
    });
}

// 修改金蝶-财务-应付票据结算单
export function editInfo(data) {
    return request({
        url: "/heart/KingFinanceReceiptSettlementBill",
        method: "put",
        data: data,
    });
}

// 删除金蝶-财务-应付票据结算单
export function deleteInfo(id) {
    return request({
        url: "/heart/KingFinanceReceiptSettlementBill/" + id,
        method: "delete",
    });
}

// 导出金蝶-财务-应付票据结算单
export function exportInfo(query) {
    return request({
        url: "/heart/KingFinanceReceiptSettlementBill/export",
        method: "get",
        params: query,
    });
}
